import Vue from 'vue'
import App from './App.vue'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/style/main.css'
import '@/assets/style/index.scss' // global css
import router from './router'
import VTree from '@/components/Tree'
import VTable from '@/components/Table'
import VQueryForm from '@/components/QueryForm'
import VFileUpload from '@/components/FileUpload'
import VImageUpload from '@/components/ImageUpload'
import VImportDialog from '@/components/ImportDialog'
// import VFormDetailLayout from '@/components/FormDetailLayout'
import VForm from '@/components/Form'
// import VEditor from '@/components/Editor'
// import VFullCalendar from '@/components/FullCalendar'
Vue.use(Element, {
  size: 'medium' // set element-ui default size
})
Vue.component('VTree', VTree)
Vue.component('VTable', VTable)
Vue.component('VQueryForm', VQueryForm)
Vue.component('VFileUpload', VFileUpload)
Vue.component('VImageUpload', VImageUpload)
Vue.component('VImportDialog', VImportDialog)
// Vue.component('VFormDetailLayout', VFormDetailLayout)
Vue.component('VForm', VForm)
Vue.prototype.$EventBus = new Vue()
// Vue.component('VEditor', VEditor)
// Vue.component('VFullCalendar', VFullCalendar)
import plugins from './plugins' // plugins
Vue.use(plugins)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  render: h => h(App),
}).$mount('#app')
